home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / includes / pmcommands.h < prev    next >
C/C++ Source or Header  |  1996-11-18  |  16KB  |  427 lines

  1. /*
  2.  *--- PageMakerCommands.h -------------------------------------------
  3.  * Copyright 1990-95 Adobe Systems, Inc.  All rights reserved.
  4.  *
  5.  *  This contains the declarations of all the internal PageMaker
  6.  *    commands and queries.
  7.  *
  8.  *
  9.  *-------------------------------------------------------------------
  10.  */
  11.  
  12. #ifndef __PageMakerCommands__
  13. #define __PageMakerCommands__
  14.  
  15. #ifdef __MWERKS__
  16. #pragma once
  17. #endif
  18.  
  19. //---------------------------------------------------------
  20. //  Command declarations:
  21. //  --------------------
  22. //
  23. //  These #defines form the basis of the command declarations.
  24. //---------------------------------------------------------
  25.  
  26. // Command Sections:
  27. #define pm_nullcommand  0                 // start of cmds
  28. #define pm_maxcommand   pm_nullcommand + 1999   // end of cmds.
  29.  
  30.     // Query Section:
  31. #define pm_a_commands   pm_nullcommand + 1100
  32. #define pm_b_commands   pm_nullcommand + 1135
  33. #define pm_c_commands   pm_nullcommand + 1170
  34. #define pm_d_commands   pm_nullcommand + 1205
  35. #define pm_e_commands   pm_nullcommand + 1240
  36. #define pm_f_commands   pm_nullcommand + 1275
  37. #define pm_g_commands   pm_nullcommand + 1310
  38. #define pm_h_commands   pm_nullcommand + 1345
  39. #define pm_i_commands   pm_nullcommand + 1380
  40. #define pm_j_commands   pm_nullcommand + 1415
  41. #define pm_k_commands   pm_nullcommand + 1450
  42. #define pm_l_commands   pm_nullcommand + 1485
  43. #define pm_m_commands   pm_nullcommand + 1520
  44. #define pm_n_commands   pm_nullcommand + 1555
  45. #define pm_o_commands   pm_nullcommand + 1590
  46. #define pm_p_commands   pm_nullcommand + 1625
  47. #define pm_q_commands   pm_nullcommand + 1660
  48. #define pm_r_commands   pm_nullcommand + 1695
  49. #define pm_s_commands   pm_nullcommand + 1730
  50. #define pm_t_commands   pm_nullcommand + 1765
  51. #define pm_u_commands   pm_nullcommand + 1800
  52. #define pm_v_commands   pm_nullcommand + 1835
  53. #define pm_w_commands   pm_nullcommand + 1870
  54. #define pm_x_commands   pm_nullcommand + 1905
  55. #define pm_y_commands   pm_nullcommand + 1940
  56. #define pm_z_commands   pm_nullcommand + 1975
  57.  
  58. #define pm_drawing_cmds   pm_nullcommand + 800
  59. #define pm_edit_menu    pm_nullcommand + 100
  60. #define pm_element_menu   pm_nullcommand + 500
  61. #define pm_file_menu    pm_nullcommand + 1
  62. #define pm_misc_cmds    pm_nullcommand + 1000
  63. #define pm_object_cmds    pm_nullcommand + 900
  64. #define pm_options_menu   pm_nullcommand + 200
  65. #define pm_page_menu    pm_nullcommand + 300
  66. #define pm_textedit_cmds  pm_nullcommand + 700
  67. #define pm_type_menu    pm_nullcommand + 400
  68. #define pm_windows_menu   pm_nullcommand + 600
  69. //
  70. // Note: pm_new_commands really started at 900+12, 
  71. // so as not to interfere with pm_object_commands
  72. //
  73. #define pm_new_commands   pm_nullcommand + 900
  74.  
  75.  
  76. typedef enum
  77. {
  78.     //---------------------------------------------------------
  79.     //    Command Section: Organized alphabetically
  80.     //---------------------------------------------------------
  81.     // 'A' Commands:
  82.     pm_addition             = (pm_misc_cmds + 0),
  83.     pm_addpreview             = (pm_new_commands + 32),
  84.     pm_addword                 = (pm_a_commands + 0),
  85.     pm_alignment             = (pm_type_menu + 21),
  86.     pm_autoflow             = (pm_options_menu + 7),
  87.     pm_addprinterstyle         = (    pm_a_commands + 1),
  88.     pm_assignlayer             = (pm_a_commands + 2),
  89.     pm_attachcontent         = (pm_a_commands + 4),
  90.  
  91.     // 'B' Commands:
  92.     pm_basedon                 = (pm_type_menu + 25),
  93.     pm_blackattributes         = (pm_b_commands + 0),
  94.     pm_book                 = (pm_file_menu + 14),
  95.     pm_box                     = (pm_drawing_cmds + 1),
  96.     pm_bringforward         = (pm_b_commands + 1),
  97.     pm_bringtofront         = (pm_b_commands + 2),
  98.     pm_breaklinks             = (pm_b_commands + 3),
  99.  
  100.  
  101.     // 'C' Commands:
  102.     pm_case                 = (pm_type_menu + 7),
  103.     pm_cascade                 = (pm_windows_menu + 6),
  104.     pm_change                 = (pm_c_commands + 0),
  105.     pm_changeall             = (pm_c_commands + 2),
  106.     pm_changeparaattr         = (pm_c_commands + 3),
  107.     pm_changetypeattr1         = (pm_c_commands + 6),
  108.     pm_changetypeattr2         = (pm_c_commands + 7),
  109.     pm_changeenv             = (pm_new_commands + 12),
  110.     pm_changenext             = (pm_c_commands + 1),
  111.     pm_changewindow         = (pm_c_commands + 5),
  112.     pm_clear                 = (pm_edit_menu + 4),
  113.     pm_close                 = (pm_file_menu + 2),
  114.     pm_closestory             = (pm_c_commands + 4),
  115.     pm_color                 = (pm_object_cmds + 0),
  116.     pm_colorpalette         = (pm_windows_menu + 3),
  117.     pm_columnguides         = (pm_options_menu + 6),
  118.     pm_controlpalette         = (pm_windows_menu + 4),
  119.     pm_copy                 = (pm_edit_menu + 1),
  120.     pm_createindex             = (pm_options_menu + 10),
  121.     pm_createtoc             = (pm_options_menu + 12),
  122.     pm_crop                 = (pm_object_cmds + 10),
  123.     pm_cropimageatframe     = (pm_c_commands + 8),
  124.     pm_croprect             = (pm_c_commands + 9),
  125.     pm_cut                     = (pm_edit_menu + 0),
  126.     pm_convertenhmetafile     = (pm_misc_cmds + 15),
  127.  
  128.     // 'D' Commands:
  129.     pm_defaultdir             = (pm_new_commands + 20),
  130.     pm_definecolor             = (pm_new_commands + 13),
  131.     pm_defineink             = (pm_new_commands + 44),
  132.     pm_delete                 = (pm_object_cmds + 4),
  133.     pm_deletehoriz             = (pm_misc_cmds + 4),
  134.     pm_deleteprivatedata     = (pm_d_commands + 2),
  135.     pm_deleterulerguides     = (pm_misc_cmds + 6),
  136.     pm_deletevert             = (pm_misc_cmds + 5),
  137.     pm_deselect             = (pm_object_cmds + 1),
  138.     pm_dictionary             = (pm_type_menu + 11),
  139.     pm_displayspecial         = (pm_d_commands + 0),
  140.     pm_displaystylenames     = (pm_d_commands + 1),
  141.     pm_deletemasterpage     = (    pm_d_commands + 5),
  142.     pm_definemasterpage     = (pm_d_commands + 6),
  143.     pm_defaultprintclrspace = (pm_d_commands + 7),
  144.     pm_deletelayer             = (pm_d_commands + 8),
  145.     pm_deleteunusedlayers     = (pm_d_commands + 9),
  146.     pm_dragselect             = (pm_d_commands + 10),
  147.     pm_dragselectextend     = (pm_d_commands + 11),
  148.     pm_deletecontent         = (pm_d_commands + 12),
  149.     pm_downloadwebcontent    = (pm_d_commands + 13),
  150.  
  151.     // 'E' Commands:
  152.     pm_editcolor             = (pm_element_menu + 7),
  153.     pm_editlayout             = (pm_e_commands + 0),
  154.     pm_editoriginal         = (pm_edit_menu + 11),
  155.     pm_editstory             = (pm_edit_menu + 10),
  156.     pm_evaluate_text         = (pm_nullcommand + 4900),
  157.     pm_execute_text         = (pm_nullcommand + 1900),
  158.     pm_exit                 = (pm_file_menu + 23),
  159.     pm_export                 = (pm_file_menu + 7),
  160.  
  161.     // 'F' Commands:
  162.     pm_fillandline             = (pm_new_commands + 15),
  163.     pm_fillstyle             = (pm_element_menu + 1),
  164.     pm_find                    = (pm_f_commands + 0),
  165.     pm_findparaattr         = (pm_f_commands + 1),
  166.     pm_findtypeattr1        = (pm_f_commands + 4),
  167.     pm_findtypeattr2        = (pm_f_commands + 5),
  168.     pm_findnext             = (pm_f_commands + 2),
  169.     pm_findwindow             = (pm_f_commands + 3),
  170.     pm_font                 = (pm_type_menu + 0),
  171.     pm_fontdrawing             = (pm_edit_menu + 7),
  172.     pm_framecontentpos         = (pm_f_commands + 6),
  173.     pm_frameinset             = (pm_f_commands + 7),
  174.  
  175.     // 'G' Commands:
  176.     pm_group                 = (pm_g_commands + 0),
  177.     pm_guidehoriz             = (pm_misc_cmds + 2),
  178.     pm_guides                 = (pm_options_menu + 3),
  179.     pm_guidevert             = (pm_misc_cmds + 3),
  180.     pm_goback                 = (pm_g_commands + 1),
  181.     pm_goforward             = (pm_g_commands + 2),
  182.  
  183.  
  184.     // 'H' Commands:
  185.     pm_hyphenation             = (pm_type_menu + 20),
  186.     pm_hyperjump             = (pm_h_commands + 0),
  187.     pm_hyperlinkpalette     = (pm_h_commands + 1),
  188.  
  189.     // 'I' Commands:
  190.     pm_import                 = (pm_file_menu + 8),
  191.     pm_indents                 = (pm_type_menu + 18),
  192.     pm_indexauto             = (pm_options_menu + 8),
  193.     pm_indexautoname         = (pm_options_menu + 9),
  194.     pm_indexformat             = (pm_options_menu + 11),
  195.     pm_inknd                 = (pm_i_commands + 0),
  196.     pm_insertpages             = (pm_page_menu + 3),
  197.     pm_invalidaterect         = (pm_misc_cmds + 12),
  198.     pm_imagesaveforsep         = (pm_i_commands + 1),
  199.     pm_imagesaveas             = (pm_i_commands + 2),
  200.     pm_inserttoken             = (pm_i_commands + 3),
  201.  
  202.     // 'J' Commands:
  203.     // 'K' Commands:
  204.     pm_kern                 = (pm_textedit_cmds + 7),
  205.     pm_kerntext             = (pm_textedit_cmds + 8),
  206.  
  207.     // 'L' Commands:
  208.     pm_leading                 = (pm_type_menu + 2),
  209.     pm_letterspace             = (pm_type_menu + 16),
  210.     pm_line                    = (pm_drawing_cmds + 0),
  211.     pm_linestyle            = (pm_element_menu + 0),
  212.     pm_linkoptions            = (pm_element_menu + 9),
  213.     pm_lock                    = (pm_l_commands + 0),
  214.     pm_lockguides            = (pm_options_menu + 5),
  215.     pm_layeroptions            = (    pm_l_commands + 1),
  216.     pm_locklayers            = (pm_l_commands + 2),
  217.     pm_layadjopts            = (pm_l_commands + 3),
  218.     pm_linkframes            = (pm_l_commands + 4),
  219.     pm_layerpalette            = (pm_l_commands + 5),
  220.  
  221.     // 'M' Commands:
  222.     pm_manualkerning        = (pm_textedit_cmds + 6),
  223.     pm_mask                    = (pm_element_menu + 11),
  224.     pm_masterguides            = (pm_page_menu + 6),
  225.     pm_masteritems            = (pm_page_menu + 5),
  226.     pm_measureunits            = (pm_edit_menu + 6),
  227.     pm_minisave                = (pm_file_menu + 4),
  228.     pm_move                    = (pm_object_cmds + 8),
  229.     pm_movecolumn            = (pm_misc_cmds + 7),
  230.     pm_multiplepaste        = (pm_edit_menu + 3),
  231.     pm_multpasteoffset        = (pm_m_commands + 0),
  232.     pm_masterpage            = (pm_m_commands + 6),
  233.     pm_masterpagepalette    = (pm_m_commands + 7),
  234.     pm_movelayer            = (pm_m_commands + 8),
  235.  
  236.     // 'N' Commands:
  237.     pm_new                    = (pm_file_menu + 0),
  238.     pm_newstory                = (pm_textedit_cmds + 0),
  239.     pm_newstorysized        = (pm_n_commands + 0),
  240.     pm_nextstyle            = (pm_type_menu + 26),
  241.     pm_nudge                = (pm_object_cmds + 9),
  242.     pm_displaynonprinting    = (pm_n_commands + 1),
  243.     pm_nonprinting            = (pm_n_commands + 2),
  244.     pm_newlayer                = (pm_n_commands + 3),
  245.  
  246.     // 'O' Commands:
  247.     pm_open                    = (pm_file_menu + 1),
  248.     pm_openstory            = (pm_o_commands + 0),
  249.     pm_oval                    = (pm_drawing_cmds + 2),
  250.  
  251.     // 'P' Commands:
  252.     pm_page                    = (pm_page_menu + 1),
  253.     pm_pagemargins            = (pm_file_menu + 11),
  254.     pm_pagenumbers            = (pm_file_menu + 13),
  255.     pm_pageoptions            = (pm_file_menu + 12),
  256.     pm_pagesize                = (pm_file_menu + 10),
  257.     pm_paintwindow            = (pm_new_commands + 42),
  258.     pm_palettedn            = (pm_misc_cmds + 13),
  259.     pm_paletteup            = (pm_misc_cmds + 14),
  260.     pm_paraoptions            = (pm_type_menu + 10),
  261.     pm_paraspace            = (pm_type_menu + 9),
  262.     pm_paste                = (pm_edit_menu + 2),
  263.     pm_pastelink            = (pm_new_commands + 17),
  264.     pm_pastespecial            = (pm_new_commands + 18),
  265.     pm_pickcolor            = (pm_new_commands + 38),
  266.     pm_place                = (pm_file_menu + 9),
  267.     pm_placesized            = (pm_p_commands + 3),
  268.     pm_placenext            = (pm_object_cmds + 5),
  269.     pm_position                = (pm_type_menu + 6),
  270.     pm_polygon                = (pm_drawing_cmds + 3),
  271.     pm_polygonattribs        = (pm_drawing_cmds + 4),
  272.     pm_preferences            = (pm_edit_menu + 9),
  273.     pm_print                = (pm_file_menu + 15),
  274.     pm_printerresol            = (pm_p_commands + 5),
  275.     pm_printcomposite        = (pm_file_menu + 19),
  276.     pm_printoptions1        = (pm_file_menu + 17),
  277.     pm_printoptions2        = (pm_file_menu + 18),
  278.     pm_printpostscript        = (pm_file_menu + 21),
  279.     pm_printsetup            = (pm_file_menu + 16),
  280.     pm_printspotcolors        = (pm_file_menu + 20),
  281.     pm_printcolor            = (pm_new_commands + 23),
  282.     pm_printdoc                = (pm_new_commands + 24),
  283.     pm_printink                = (pm_new_commands + 25),
  284.     pm_printoptions            = (pm_new_commands + 26),
  285.     pm_printoptionsps        = (pm_new_commands + 27),
  286.     pm_printpaperps            = (pm_new_commands + 35),
  287.     pm_printto                = (pm_new_commands + 36),
  288.     pm_privatedata            = (pm_p_commands + 0),
  289.     //ulong vendID, ulong addnID, word targetclass (convert to CIX), ulong usercontext, #records to store, ulong targetRID, BOOL changeit, handle to data
  290.     pm_privatestring        = (pm_p_commands + 1),
  291.     //ulong vendID, ulong addnID, word targetclass (convert to CIX), ulong usercontext, #records to store, ulong targetRID, BOOL changeit, pdata string
  292.     pm_printfeature            = (pm_new_commands + 43),
  293.     pm_printerstyle            = (pm_p_commands + 4),
  294.  
  295.     pm_polygontype            = (pm_p_commands + 7),
  296.     pm_polygonmiterlimit    = (pm_p_commands + 8),
  297.     pm_polygonvertices        = (pm_p_commands + 9),
  298.     pm_createpolygon        = (pm_p_commands + 10),
  299.     pm_reversepolyvertices    = (pm_p_commands + 11),
  300.     pm_appendvertices        = (pm_p_commands + 12),
  301.     pm_polygonjoin            = (pm_p_commands + 13),
  302.  
  303.  
  304.     pm_printscreenrgbs        = (pm_new_commands + 46),
  305.     pm_printepspreviews        = (pm_new_commands + 47),
  306.     pm_pasteremembers        = (pm_p_commands + 6),
  307.     pm_printdevicindpntcolor = (pm_p_commands + 14),
  308.  
  309.  
  310.     // 'Q' Commands:
  311.     pm_quit                    = (pm_file_menu + 22),
  312.  
  313.     // 'R' Commands:
  314.     pm_redraw                = (pm_misc_cmds + 8),
  315.     pm_reflect                = (pm_new_commands + 28),
  316.     pm_releaseacrobathandle = (pm_r_commands + 2),
  317.     pm_relink                = (pm_element_menu + 8),
  318.     pm_removecolor            = (pm_new_commands + 16),
  319.     pm_removepages            = (pm_page_menu + 4),
  320.     pm_removestyle            = (pm_type_menu + 27),
  321.     pm_removeunusedcolors    = (pm_new_commands + 45),
  322.     pm_removeword            = (pm_r_commands + 0),
  323.     pm_renderclip            = (pm_new_commands + 19),
  324.     pm_resize                = (pm_object_cmds + 6),
  325.     pm_resizepct            = (pm_object_cmds + 7),
  326.     pm_restorecolor            = (pm_element_menu + 13),
  327.     pm_revert                = (pm_file_menu + 6),
  328.     pm_rotate                = (pm_new_commands + 34),
  329.     pm_rotation                = (pm_element_menu + 4),
  330.     pm_roundedcorners        = (pm_element_menu + 6),
  331.     pm_ruleabove            = (pm_type_menu + 12),
  332.     pm_rulebelow            = (pm_type_menu + 13),
  333.     pm_ruleoptions            = (pm_type_menu + 14),
  334.     pm_rulers                = (pm_options_menu + 0),
  335.     pm_removeprinterstyle    = (pm_r_commands + 1),
  336.     pm_renamemasterpage        = (pm_r_commands + 3),
  337.     pm_recorder                = (pm_r_commands + 4),
  338.  
  339.     // 'S' Commands:
  340.     pm_save                    = (pm_file_menu + 3),
  341.     pm_saveas                = (pm_file_menu + 5),
  342.     pm_scroll                = (pm_misc_cmds + 1),
  343.     pm_scrollbars            = (pm_windows_menu + 1),
  344.     pm_select                = (pm_object_cmds + 2),
  345.     pm_selectall            = (pm_edit_menu + 5),
  346.     pm_selectextend            = (pm_object_cmds + 3),
  347.     pm_selectid                = (pm_s_commands + 0),
  348.     pm_selectidextend        = (pm_s_commands + 1),
  349.     pm_sendbackward            = (pm_s_commands + 5),
  350.     pm_sendtoback            = (pm_element_menu + 3),
  351.     pm_sendtopage            = (pm_misc_cmds + 11),
  352.     pm_settextcursor        = (pm_new_commands + 37),
  353.     pm_setwidth                = (pm_type_menu + 3),
  354.     pm_showpages            = (pm_page_menu + 2),
  355.     pm_showerroralert        = (pm_new_commands + 40),
  356.     pm_size                    = (pm_type_menu + 1),
  357.     pm_sizebump                = (pm_textedit_cmds + 5),
  358.     pm_skew                    = (pm_new_commands + 29),
  359.     pm_snaptoguides            = (pm_options_menu + 4),
  360.     pm_snaptorulers            = (pm_options_menu + 1),
  361.     pm_spaceoptions            = (pm_type_menu + 17),
  362.     pm_spell                = (pm_s_commands + 2),
  363.     pm_spellwindow            = (pm_s_commands + 3),
  364.     pm_storyeditpref        = (pm_edit_menu + 8),
  365.     pm_style                = (pm_type_menu + 22),
  366.     pm_stylebegin            = (pm_type_menu + 23),
  367.     pm_styleend                = (pm_type_menu + 24),
  368.     pm_stylepalette            = (pm_windows_menu + 2),
  369.     pm_suppressautosave        = (pm_s_commands + 4),
  370.     pm_suppresspreview        = (pm_new_commands + 30),
  371.     pm_suppresspaldraw        = (pm_new_commands + 41),
  372.     pm_suppresspi            = (pm_new_commands + 39),
  373.     pm_suppressprint        = (pm_new_commands + 31),
  374.     pm_saveasmasterpage        = (    pm_s_commands + 6),
  375.     pm_setepsfontscan        = (pm_s_commands + 7),
  376.     pm_savestatusoff        = (pm_s_commands + 8),
  377.     pm_scriptpal            = (pm_s_commands + 9),
  378.     pm_selectlayer            = (pm_s_commands + 10),
  379.     pm_showlayers            = (pm_s_commands + 11),
  380.     pm_separatecontent        = (pm_s_commands + 12),
  381.     pm_scriptabort            = (pm_s_commands + 13),
  382.  
  383.     // 'T' Commands:
  384.     pm_tabs                    = (pm_type_menu + 19),
  385.     pm_textcursor            = (pm_textedit_cmds + 3),
  386.     pm_textedit                = (pm_textedit_cmds + 1),
  387.     pm_textenter            = (pm_textedit_cmds + 4),
  388.     pm_textselect            = (pm_textedit_cmds + 2),
  389.     pm_textwrap                = (pm_element_menu + 5),
  390.     pm_tintselection        = (pm_o_commands + 1),
  391.     pm_textwrappoly            = (    pm_object_cmds + 11),
  392.     pm_toolbox                = (pm_windows_menu + 0),
  393.     pm_tool                    = (pm_t_commands + 1),
  394.     pm_nobreak                = (pm_t_commands + 2),
  395.     pm_track                = (pm_type_menu + 4),
  396.     pm_typeoptions            = (pm_type_menu + 8),
  397.     pm_typestyle            = (pm_type_menu + 5),
  398.     pm_trapsettings            = (    pm_t_commands + 0),
  399.     pm_tile                    = (pm_windows_menu + 5),
  400.     pm_toggleframe            = (pm_t_commands + 3),
  401.     pm_targetlayer            = (pm_t_commands + 4),
  402.  
  403.     // 'U' Commands:
  404.     pm_unlink                = (pm_element_menu + 10),
  405.     pm_ungroup                = (pm_u_commands + 0),
  406.     pm_unmask                = (pm_element_menu + 12),
  407.     pm_unselect                = (pm_u_commands + 1),
  408.     pm_unselectid            = (pm_u_commands + 2),
  409.  
  410.     // 'V' Commands:
  411.     pm_view                    = (pm_page_menu + 0),
  412.  
  413.     // 'W' Commands:
  414.     pm_window                = (pm_new_commands + 33),
  415.     pm_wordspace            = (pm_type_menu + 15),
  416.  
  417.     // 'Z' Commands:
  418.     pm_zerolock                = (pm_options_menu + 2),
  419.     pm_zeropoint            = (pm_misc_cmds + 9),
  420.     pm_zeropointreset        = (pm_misc_cmds + 10)
  421.  
  422. } ePMCommand;
  423.  
  424. #endif
  425.  
  426. // end of PageMakerCommands.h
  427.